package com.example.testnborm;

import nborm.annotation.TableId;

/**
 * 数据模型
 */
public class Student {
    /**
     * 主键需要用@TableId注解来标识，默认自增
     */
    @TableId
    public int id;
    public String studentName;

    public Student(String studentName) {
        this.studentName = studentName;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", studentName='" + studentName + '\'' +
                '}';
    }
}
